<%@ page contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<%@ include file="/static/commons/taglibs.jsp"%>
<%@ include file="/static/commons/meta.jsp"%>
<html xmlns="http://www.w3.org/1999/xhtml">
 <head>
 	<title>${title }</title>
	<!--自定义index样式-->
	<link rel="stylesheet" href="${ctx }/static/styles/basic/basic.css"/>
	<link rel="stylesheet" href="${ctx }/static/styles/edit/box.css"/>
	<!--js库-->
	<%@ include file="/static/commons/jquery-easyui.jsp" %>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.draggable.js"></script>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.droppable.js"></script>
	<script type="text/javascript" src="${ctx}/static/widgets/easyui/plugins/jquery.tree.js"></script>
	<script type="text/javascript" src="${ctx}/static/scripts/set_select.js"></script>
  </head>
  
  <body style="padding-bottom:8px;">
  		<c:set var="disabled" value=""></c:set>
  		<c:set var="ifSelect" value=""></c:set>
  		<c:if test="${not empty view}">
  			<c:set var="disabled" value="disabled"></c:set>
  			<c:set var="ifSelect" value="false"></c:set>
  		</c:if>
  		<form id="editForm" action="${ctx}/deviceInfo/save" method="post">
  			<input type="hidden" value="${obj.device_id}" id="deviceId" name="p_deviceId"></input>
  			<div class="box">
	  			<table>
	  				<tbody>
						
						<tr>
							<td class="message">
								<p><span>*</span>仪器名称：</p>
							</td>
							<td>
								<input type="text" id="deviceName" name="p_deviceName" value="${obj.device_name }"
									class="wd170 " ${disabled } maxLength="20" style="width: 100%;"></input>
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>仪器类型：</p>
							</td>
							<td>
								<vvise:select id="deviceType" name="p_deviceType" sqlname="getCodeData" className="wd170" width="99%"
	  								defval="${obj.device_type}" sqlparam="device_type" ifSelect="${ifSelect}" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p><span>*</span>原始记录模板：</p>
							</td>
							<td>
								<vvise:select id="record0" name="p_record0" sqlname="getTemplateInfo" className="wd170" width="99%"
	  								defval="${obj.record_0}" sqlparam="0" ifSelect="${ifSelect}" />
							</td>
						</tr>
						<tr>
							<td class="message">
								<p>备注：</p>
							</td>
							<td>
								<input type="text" id="remark" name="p_remark" value="${obj.remark }"
									class="wd170 " ${disabled } maxLength="40" style="width: 100%;" ></input>
							</td>
						</tr>
					</tbody>
	  			</table>
	  		</div>
        </form>
  </body>
</html>